<!--{eval $_TPL['titles'] = array($blog['subject'], '影片 '.$movieshow[mname]);}-->
<!--{template header}-->
<style type="text/css">
.movieimg{border:1px solid #CCCCCC;padding:3px;display:block;height:216px;max-height:216px;margin-bottom:8px;width:166px;}
.movie{width:100%;} 
.movie li{height:33px;line-height:33px;}
.movie_ji a{display:block;float:left;margin-top:5px;height:25px;line-height:25px;wi/\dth:60px;border:1px solid #CCCCCC;text-align:center;margin-left:10px;padding-left:10px;padding-right:10px;}
.rate{background:url(image/star.png) no-repeat scroll 0 0;background-position:0 -60px;}.rate1{background:url(image/star.png) no-repeat scroll 0 0;background-position:0 -45px;}.rate2{background:url(image/star.png) no-repeat scroll 0 0;background-position:0 -30px;}.rate3{background:url(image/star.png) no-repeat scroll 0 0;background-position:0 -15px;}.rate4{background:url(image/star.png) no-repeat scroll 0 0;background-position:0 0;}
#pingjia a:hover{text-decoration : none}#score{color:red}#xx{width:80px;}
.score{background:url(image/star.png) no-repeat scroll 0 0;background-position:0 -75px;}
.score2{background-position:0 -45px;}.score3{background-position:0 -30px;}.score4{background-position:0 -15px;}.score5{background-position:0 0;}
</style>
<script type="text/javascript" src="./source/movie.js"></script>
<script type="text/javascript">
<!--
function keeps(id){
	ajaxFunction();
	var url='./movie.php?id='+id;
	//alert(url);exit();
	xxmlHttp.open('GET',url,true);
	xxmlHttp.onreadystatechange = handelChangek;//这一句最为关键，是ajax异步通讯的关键点
	xxmlHttp.send(null);		
}
function handelChangek(){
	
	//var poDiv=document.getElementById("po");
	if(xxmlHttp.readyState == 4 && xxmlHttp.status == 200){
		var Strings = xxmlHttp.responseText;
		if(Strings=='nouid'){
			alert("请先登陆！！");
		}else if(Strings=='you'){
			alert("此影片你已经收藏过");
		}else{
			alert("收藏成功");
		}
	}
}
//-->
</script>
<h2 class="title"><img src="image/app/supev.gif" /><!--{if isset($_GET[part])}-->正在播放 $movieshow[mname] 第<!--{eval echo $_GET[part]+1;}-->集<!--{else}-->影片-$movieshow[mname]<!--{/if}--></h2>&nbsp;
<div class="tabs_header">
	<ul class="tabs">
		<li><a href="space.php?do=$do&view=all"><span>首页</span></a></li>
		<li <!--{if $_GET[view]!='invite'}-->class="active"<!--{/if}-->><a href="space.php?do=$do&id=$_GET[id]"><span>影视-$movieshow[mname] <!--{if isset($_GET[part])}--> 正在播放<!--{/if}--></span></a></li>
		<li <!--{if $_GET[view]=='invite'}-->class="active"<!--{/if}-->><a href="space.php?do=$do&view=invite&id=$_GET[id]"><span>邀请好友</span></a></li>
		<li class="null"><a href="cp.php?ac=movie">发布新片</a></li>
		<li class="null"><a href="cp.php?ac=movie&op=source&movieid=$_GET[id]">为本片加资源</a></li>

	</ul>
	<!--{if $_SGLOBAL[refer]}-->
	<div class="r_option">
		<a  href="$_SGLOBAL[refer]">&laquo; 返回上一页</a>
	</div>
	<!--{/if}-->
</div>

<script type="text/javascript" charset="$_SC[charset]" src="source/script_calendar.js"></script>
<!--{if $_GET[view]!='invite'}-->
<div class="entry" style="padding:0 0 10px;">

	<div class="title">
		<h1><!--{if isset($_GET[part])}-->正在播放 $movieshow[mname] 
			<!--{if $movieshow['jiming'] ==1}-->
			$_GET[part]
			<!--{else}-->
			第<!--{eval echo $_GET[part]+1;}-->集
			<!--{/if}-->
		<!--{else}-->影片-$movieshow[mname]<!--{/if}--></h1>
		<span class="gray">已有 $movieshow[times] 次观看</span>
	</div>


	<div id="blog_article" class="article">
		<div class="resizeimg">
			<div class="resizeimg2">
			<div class="resizeimg3">
			<div class="resizeimg4">
	<!--{if $movieshow[checked]==1||$movieshow[uid]==$_SGLOBAL[supe_uid]||checkperm('managemovie')}-->
			<!--{if $_GET[view]=='kan'}-->
				<!--{if $_SGLOBAL['ad']['rightside']}-->
				<div style="float: right; padding:5px;width:260px;overflow:hidden;"><!--{ad/rightside}--></div>
				<!--{/if}-->
			<span id="players">$movieshow[playcode]</span>
			<table border="0" class="movie">
			  <tr>
			  	<td colspan="2" height="20px" class="title gray"><font size="2" color="Black">本类资源导航</font> 
		<!--{if $_SGLOBAL[supe_uid] == $movieshow[uid] || checkperm('managemovie')}-->
				  	<a href="cp.php?ac=movie&op=source&movieid=$movieshow[movieid]&sourceid=$urlkey">编辑本资源</a>
				  	<!--{/if}--></td>
			  </tr>
				<tr>
				  	<td colspan="2" class="movie_ji">
				  	<!--{loop $movieshow[movieurl][$sourceid] $key $value}-->
				  	<!--{if $movieshow['jiming'] ==1}-->
				  	<a id="ji" href="space.php?do=movie&view=kan&part=<!--{eval echo urlencode($key)}-->&id=$movieshow[movieid]&sourceid=$sourceid">$key</a>
				  	<!--{else}-->
				  	<a id="ji" href="space.php?do=movie&view=kan&part=$key&id=$movieshow[movieid]&sourceid=$sourceid">第<!--{eval echo $key+1;}-->集</a>
				  	<!--{/if}-->
			  	<!--{/loop}-->
				  	</td>
				</tr>
			  <tr>
			  	<td colspan="2" >本视频均是网友从网络上的转载，如有侵犯你的权利，请尽快联系管理员，以便及时删除!</td>
			  </tr>
			</table>
			<!--{else}-->
			
			<table border="0" class="movie">
			  <tr>
			    <td width="175px" height="225px"><img class="movieimg" src="$movieshow[images]" alt="$movieshow[mname]" width="160px" height="220px" /></td>
			    <td>
			    <ul>
					<li style="font-size:16px;font-family:'黑体';list-style:none;padding-left:0;"><span name='full'>$movieshow[mname]</span> 
					<!--{if $movieshow[checked]==0}--><font color="Red">未审核</font><!--{/if}-->
					<!--{if $movieshow[checked]==2}--><font color="Red">审核未通过，请修改</font><!--{/if}--> &nbsp; <font color="Red" size="2">积分消费：$_SGLOBAL['kanmovie']</font></li>
					<li style="list-style:none;">主　　演：<span name='full'>$movieshow[actor]</span></li>
					<li style="list-style:none;">评　　分：<span id="xx" class="$movieshow['class']">　　　　　　　</span>
					<span id="score"><!--{if $movieshow[fen]}-->$movieshow[fen]<!--{else}-->还未有人评<!--{/if}--></span> 分</li>
					<li style="list-style:none;">类　　型：<a href="space.php?do=movie&view=$movieshow[typeid]" target="_blank"><span name='full'>$movieshow[type]</span></a></li>
					<li style="list-style:none;">地　　区：<a href="space.php?do=movie&regionid=$movieshow[regionid]" target="_blank"><span name='full'>$movieshow[region]</span></a></li>
					<li style="list-style:none;">发布用户：<a href="space.php?do=movie&uid=$movieshow[uid]" target="_blank"><span name='full'>$movieshow[username]</span></a></li>
					<li style="list-style:none;">加入日期：<span name='full'><!--{date('Y-m-d H:i',$movieshow[dateline],1)}--></span></li>
				</ul>
			   
			    </td>
			  </tr>
			  <!--{loop $movieshow[movieurl] $urlkey $urlvalue}--> 
			  <tr>
			  	<td colspan="2" height="20px" class="title gray"><font size="2" color="Black">$movieshow['playername'][$urlkey]</font> 
		<!--{if $_SGLOBAL[supe_uid] == $movieshow[uid] || checkperm('managemovie')}-->
				  	<a href="cp.php?ac=movie&op=source&movieid=$movieshow[movieid]&sourceid=$urlkey">编辑本资源</a>
				  	<!--{/if}--></td>
			  </tr>
			  <tr>
			  	<td colspan="2" class="movie_ji">
			  	<!--{loop $movieshow[movieurl][$urlkey] $key $value}-->
				  	<!--{if $movieshow[jiming][$urlkey]==1}-->
				  	<a id="ji" href="space.php?do=movie&view=kan&part=<!--{eval echo urlencode($key)}-->&id=$movieshow[movieid]&sourceid=$urlkey">$key</a>
				  	<!--{else}-->
				  	<a id="ji" href="space.php?do=movie&view=kan&part=$key&id=$movieshow[movieid]&sourceid=$urlkey">第<!--{eval echo $key+1;}-->集</a>
				  	<!--{/if}-->
			  	<!--{/loop}-->
			  	</td>
			  </tr>
			  <!--{/loop}-->
			  <tr>
			  	<td colspan="2" height="20px" class="title gray"><font size="2" color="Black">影片介绍</td>
			  </tr>
			  <tr>
			  	<td colspan="2" class="movie_ji">
			  	<span name='full'><!--{eval echo nl2br($movieshow[desrcipt]);}--></span>
			  	</td>
			  </tr>
			</table>
			<!--{/if}-->
	<!--{else}-->
				<table>
			  <tr>
			  	<td colspan="2" height="20px" class="title gray">对不起！此影片还未审核或者审核未通过！请耐心等侯</td>
			  </tr>
			  </table>
	<!--{/if}-->
			</div>
			</div>
			</div>
		</div>
	</div>
</div>
<div style="padding:0 0 10px;">
	<div style="text-align: right; padding-top:10px; ">
		<!--{if $_SGLOBAL[supe_uid] == $movieshow[uid] || checkperm('managemovie')}-->
		<a href="cp.php?ac=movie&movieid=$movieshow[movieid]&op=edit">编辑</a><span class="pipe">|</span>
		<a href="cp.php?ac=movie&movieid=$movieshow[movieid]&op=delete" id="movie_delete_$movieshow[movieid]" onclick="return confirm('你确定要删除吗？');">删除</a><span class="pipe">|</span>
		<!--{/if}-->
	</div>

</div>

<div id="content">
	<br>
	<p id="pingjia">
		<strong style="color:blue;font-size:14px;">评价</strong>
		<span id="rate" class="rate"> 
			<a id="movie_item_t_1" href="javascript:void(0)" onmouseover="changebg(4);" onclick="scores(2,$moveid);"/>&nbsp; &nbsp;</a>
			<a id="movie_item_t_2" href="javascript:void(0)" onmouseover="changebg(3);" onclick="scores(4,$moveid);"/>&nbsp; &nbsp;</a>
			<a id="movie_item_t_3" href="javascript:void(0)" onmouseover="changebg(2);" onclick="scores(6,$moveid);"/>&nbsp; &nbsp;</a>
			<a id="movie_item_t_4" href="javascript:void(0)" onmouseover="changebg(1);" onclick="scores(8,$moveid);"/>&nbsp; &nbsp;</a>
			<a id="movie_item_t_5" href="javascript:void(0)" onmouseover="changebg(0);" onclick="scores(10,$moveid);"/>&nbsp; &nbsp;</a>
		</span>&nbsp;
		<span id="my_score">(滑动星星评价)</span>&nbsp;&nbsp;总共有 <span id="num" style="color:red;">$movieshow[scorenum]</span> 人评价；
		&nbsp;&nbsp;&nbsp;<a style="color:blue;font-size:14px;" href="javascript:void(0)" onclick="keeps($moveid);">收藏</a>
	<!--{if $topicid}-->
	&nbsp;&nbsp;<a href="space.php?do=topic&view=blog&topicid=$topicid">影评</a>
	&nbsp;&nbsp;<a href="space.php?do=topic&view=pic&topicid=$topicid">剧照</a>
	<!--{/if}-->
	</p>
	<br>
	<!--{if $kanusers}-->
	<div id="content">
		<h2>最近看过此影片的会员</h2>
		<ul class="avatar_list">
		<!--{loop $kanusers $value}-->
		<li>
			<div class="avatar48"><a href="space.php?uid=$value[uid]"><!--{avatar($value[uid],small)}--></a></div>
			<p<!--{if $ols[$value[uid]]}--> class="online_icon_p"<!--{/if}-->><a href="space.php?uid=$value[uid]" title="{$_SN[$value[uid]]}">$value[username]</a></p>
			<p class="gray"><!--{date('n月j日',$value[dateline],1)}--></p>
		</li>
		<!--{/loop}-->
		</ul>
	</div>
	<!--{/if}-->

<!--{if $movieshow[checked]==1||$movieshow[uid]==$_SGLOBAL[supe_uid]||checkperm('managemovie')}-->
	<div class="comments" id="div_main_content">
		<h2>
			<a href="#quickcommentform_{$movieshow[movieid]}" class="r_option">发表评论</a>
			评论 (<span id="comment_replynum">$movieshow[replynum]</span> 个评论)</h2>
		<div class="page">$multi</div>
		<div class="comments_list" id="comment">
			<!--{if $cid}-->
			<div class="notice">
				当前只显示与你操作相关的单个评论，<a href="space.php?uid=$$movieshow[uid]&do=movie&id=$movieshow[movieid]">点击此处查看全部评论</a>
			</div>
			<!--{/if}-->
			<ul id="comment_ul">
			<!--{loop $list $value}-->
				<!--{template space_comment_li}-->
			<!--{/loop}-->
			</ul>
		</div>
		<div class="page">$multi</div>

		<form id="quickcommentform_{$moveid}" name="quickcommentform_{$moveid}" action="cp.php?ac=comment" method="post" class="quickpost">

			<table cellpadding="0" cellspacing="0">
				<tr>
					<td>
						<a href="###" id="comment_face" title="插入表情" onclick="showFace(this.id, 'comment_message');return false;"><img src="image/facelist.gif" align="absmiddle" /></a>
						<a id="a_magic_doodle" href="magic.php?mid=doodle&showid=comment_doodle&target=comment_message" onclick="ajaxmenu(event, this.id, 1)"><img src="image/magic/doodle.small.gif" class="magicicon" />涂鸦板</a>
						<br />
						<textarea id="comment_message" onkeydown="ctrlEnter(event, 'commentsubmit_btn');" name="message" rows="5" style="width:500px;"></textarea>
					</td>
				</tr>
				<tr>
					<td>
						<input type="hidden" name="refer" value="space.php?do=$do<!--{if $_GET[view]=='kan'}-->&view=kan<!--{/if}-->&id=$moveid" />
						<input type="hidden" name="id" value="$moveid">
						<input type="hidden" name="idtype" value="movieid">
						<input type="hidden" name="commentsubmit" value="true" />
						<input type="button" id="commentsubmit_btn" name="commentsubmit_btn" class="submit" value="评论" onclick="ajaxpost('quickcommentform_{$moveid}', 'comment_add')" />
						<div id="__quickcommentform_{$moveid}"></div>
					</td>
				</tr>
			</table>
		<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" /></form>
		<br />
	</div>
<!--{/if}-->
</div>


<div id="sidebar" style="padding-top:20px;">
	<!--{if $otherlist}-->
	<div class="sidebox">
		<h2 class="title">
			<a href="space.php?do=movie&view=all&uid=$movieshow[uid]" class="r_option">全部</a>
			发布者的其他最新影片
		</h2>
		<ul class="news_list">
			<!--{loop $otherlist $value}-->
			<li style="height:auto;"><a href="space.php?uid=$value[uid]&do=movie&id=$value[movieid]" target="_blank">$value[mname]</a></li>
			<!--{/loop}-->
		</ul>
	</div>
	<!--{/if}-->

	<!--{if $hotmovie}-->
	<div class="sidebox">
	<h2 class="title">热门影片</h2>
		<ul class="news_list">
			<!--{loop $hotmovie $value}-->
			<li style="height:auto;"><a href="space.php?uid=$value[uid]&do=movie&id=$value[movieid]" target="_blank">$value[mname]</a></li>
			<!--{/loop}-->
		</ul>
	</div>
	<!--{/if}-->	
</div>



<script type="text/javascript">
<!--
function closeSide2(oo) {
	if($('sidebar').style.display == 'none'){
		$('content').style.cssText = '';
		$('sidebar').style.display = 'block';
		oo.innerHTML = '&raquo; 关闭侧边栏';
	}
	else{
		$('content').style.cssText = 'margin: 0pt; width: 810px;';
		$('sidebar').style.display = 'none';
		oo.innerHTML = '&laquo; 打开侧边栏';
	}
}
function addFriendCall(){
	var el = $('friendinput');
	if(!el || el.value == "")	return;
	var s = '<input type="checkbox" name="fusername[]" value="'+el.value+'" id="'+el.value+'" checked>';
	s += '<label for="'+el.value+'">'+el.value+'</label>';
	s += '<br />';
	$('friends').innerHTML += s;
	el.value = '';
}
resizeImg('blog_article','700');
resizeImg('div_main_content','450');

//彩虹炫
var elems = selector('div[class~=magicflicker]'); 
for(var i=0; i<elems.length; i++){
	magicColor(elems[i]);
}

-->
</script>
<!--{else}-->
  <div id="content" style="width: 640px;">
		<form id="edit_form" name="edit_form" class="c_form" method="post" action="space.php?do=movie&view=invite&id=$_GET[id]">
			<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
			<div class="h_status">
				您可以给好友们发送邀请。
			</div>
			<div class="h_status">
				<!--{if $list}-->
				<ul class="avatar_list">
				<!--{loop $list $value}-->
					<li><div class="avatar48"><a href="space.php?uid=$value[fuid]"><!--{avatar($value[fuid],small)}--></a></div>
						<p>
						<a href="space.php?uid=$value[fuid]" title="{$_SN[$value[fuid]]}">{$_SN[$value[fuid]]}</a>
						</p>
						<p><input type="hidden" name="names[]" value="$value[fusername]"><input type="checkbox" name="ids[]" value="$value[fuid]">选定</p>
					</li>
				<!--{/loop}-->
				</ul>
				<div class="page">$multi</div>
				<!--{else}-->
				<div class="c_form">还没有好友。</div>
				<!--{/if}-->
			</div>
			<p>
				<input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')"><label for="chkall">全选</label> &nbsp;
				<input type="hidden" name="invitesubmit" value="1" />
				<input type="submit" name="bnt_invitesubmit" value="邀请" class="submit" />
			</p>
		</form>
	</div>
<!--{/if}-->
<!--{template footer}-->
